package com.ecnu.system.service;

import com.ecnu.common.core.domain.AjaxResult;
import com.ecnu.common.core.domain.model.LoginUser;
import com.ecnu.common.core.page.TableDataInfo;
import com.ecnu.system.domain.ProjectResult;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ecnu.system.domain.ProjectStageMission;
import com.ecnu.system.domain.dto.ProjectResultDTO;

import java.io.IOException;
import java.util.List;

/**
 * <p>
 * ecnu_活动_成果表 服务类
 * </p>
 *
 * @author zdn
 * @since 2025-03-24
 */
public interface IProjectResultService extends IService<ProjectResult> {

    /**
     * 活动成果列表
     *
     * @param dto
     * @param loginUser
     * @return
     */
    TableDataInfo getList(ProjectResultDTO dto, LoginUser loginUser);

    /**
     * 后台活动成果列表
     * @param dto
     * @return
     */
    TableDataInfo adminList(ProjectResultDTO dto);

    /**
     * 成果提交
     * @param projectResult
     * @param loginUser
     * @return
     */
    AjaxResult save(ProjectResult projectResult, LoginUser loginUser);

    AjaxResult save2(ProjectResult projectResult, LoginUser loginUser);

    byte[] selectFileZip(List<ProjectStageMission> projectStageMissionVOS, String userId, LoginUser loginUser) throws IOException;

}
